package testPaper;

/**
 * @author Yancy
 * @program springioctest
 * @create 2020-11-21
 */
public class Demo01 {

  public static void main(String[] args) {
    String str = "kyrieIrving";

    System.out.println(str.substring(3));
    int k = 3, sum = 0, x;
    for (int i = 1; i <= k; i++) {
      x = 1;
      for (int j = 1; j <= i; j++) {
        x = x * j;
        sum += x;
      }
    }
    System.out.println(sum);
  }
}
